package com.example.day7;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {
    static  int a = 10;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Log.e("###MainActivity",a+"");
        MyApplaction myapp = (MyApplaction)getApplication();
        myapp.aa="bb";

//        Intent intent = new Intent(MainActivity.this,second.class);
//        startActivity(intent);
    }
}
